<?php
	error_reporting( E_ALL & ~E_NOTICE );

	require_once("Smarty.class.php");
	define("SMARTY_ROOT", site_path);
	define("SMARTY_DIR", dirname(__FILE__)."/");
	
	class InitSmarty extends Smarty
	{
		public function __construct()
		{
			parent::__construct();
			$this->template_dir = SMARTY_ROOT."themes/";
			$this->compile_dir  = SMARTY_DIR."templates/templates_c/";
			$this->cache_dir  = SMARTY_DIR."templates/cache/";
			$this->config_dir  = SMARTY_DIR."templates/config/";
			$this->caching = false;
		}
	}
?>